package com.bootdo.crm.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.crm.dao.ContactsDao;
import com.bootdo.crm.domain.ContactsDO;
import com.bootdo.crm.service.ContactsService;



@Service
public class ContactsServiceImpl implements ContactsService {
	@Autowired
	private ContactsDao contactsDao;
	
	@Override
	public ContactsDO get(Integer contactsId){
		return contactsDao.get(contactsId);
	}
	
	@Override
	public List<ContactsDO> list(Map<String, Object> map){
		return contactsDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return contactsDao.count(map);
	}
	
	@Override
	public int save(ContactsDO contacts){
		return contactsDao.save(contacts);
	}
	
	@Override
	public int update(ContactsDO contacts){
		return contactsDao.update(contacts);
	}
	
	@Override
	public int remove(Integer contactsId){
		return contactsDao.remove(contactsId);
	}
	
	@Override
	public int batchRemove(Integer[] contactsIds){
		return contactsDao.batchRemove(contactsIds);
	}
	
}
